package org.raymond.iworks.study.basic.designpattern.visitor;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class Client {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.attach(new Man());

        objectStructure.attach(new Woman());

        Success success = new Success();
        Fail fail = new Fail();
        objectStructure.display(success);

        System.out.println("===========");
        objectStructure.display(fail);


        // 新增wait
        Wait wait = new Wait();
        System.out.println("===========");
        objectStructure.display(wait);
    }
}
